package com.fnzn.entranceGuard.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.fnzn.entranceGuard.entity.InitialQrManage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 初始二维码管理 Mapper 接口
 * </p>
 *
 * @author JokerGao
 * @since 2018-06-29
 */
public interface InitialQrManageMapper extends BaseMapper<InitialQrManage> {

    List<InitialQrManage> getByType(@Param("type") String type);

    List<InitialQrManage> getByTypeAndCommunityId(@Param("type") String type, @Param("communityId") String communityId);

    List<InitialQrManage> getByTypeAndCommunityIdAndBuildingId(@Param("type") String type, @Param("communityId") String communityId, @Param("buildingId")String buildingId);

    List<InitialQrManage> getByTypeAndCommunityIdAndBuildingIdAndUnitId(@Param("type") String type, @Param("communityId") String communityId, @Param("buildingId")String buildingId,  @Param("unitId")String unitId);

}
